package com.csii.adhoc.dataready;

import lombok.experimental.Accessors;

import java.util.List;

/**
 * @Description: 数据集对应实体类 对应表  T_DATA_TASK
 * @Auther: zyliu
 * @Date: 2021/01/13/9:30
 */
@Accessors(chain = true)
public class TDataCondPo implements Comparable<TDataCondPo> {

    //为适应前端特殊需求，需要将 modelId 的 getter/setter 改为 Id，临时使用
    private String modelId;
    private String menuId;
    private String fldEnname;
    ////为适应前端特殊需求，需要将 modelId 的 getter/setter 改为 pid，临时使用
    private String parentId;
    private int seqno;
    private String condType;
    private String condOper;
    private String paramType;
    private String value;
    private String assist;
    private String busiDesc;
    private String createdBy;
    private String createdDt;
    private String updatedBy;
    private String updatedDt;
    private List<TDataCondPo> children;
    String optMode;
    List<TDataCondPo> lists;

    public String getModelId() {
        return modelId;
    }

    public void setModelId(String modelId) {
        this.modelId = modelId;
    }

    public String getMenuId() {
        return menuId;
    }

    public void setMenuId(String menuId) {
        this.menuId = menuId;
    }

    public String getFldEnname() {
        return fldEnname;
    }

    public void setFldEnname(String fldEnname) {
        this.fldEnname = fldEnname;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public int getSeqno() {
        return seqno;
    }

    public void setSeqno(int seqno) {
        this.seqno = seqno;
    }

    public String getCondType() {
        return condType;
    }

    public void setCondType(String condType) {
        this.condType = condType;
    }

    public String getCondOper() {
        return condOper;
    }

    public void setCondOper(String condOper) {
        this.condOper = condOper;
    }

    public String getParamType() {
        return paramType;
    }

    public void setParamType(String paramType) {
        this.paramType = paramType;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getAssist() {
        return assist;
    }

    public void setAssist(String assist) {
        this.assist = assist;
    }

    public String getBusiDesc() {
        return busiDesc;
    }

    public void setBusiDesc(String busiDesc) {
        this.busiDesc = busiDesc;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public String getCreatedDt() {
        return createdDt;
    }

    public void setCreatedDt(String createdDt) {
        this.createdDt = createdDt;
    }

    public String getUpdatedBy() {
        return updatedBy;
    }

    public void setUpdatedBy(String updatedBy) {
        this.updatedBy = updatedBy;
    }

    public String getUpdatedDt() {
        return updatedDt;
    }

    public void setUpdatedDt(String updatedDt) {
        this.updatedDt = updatedDt;
    }

    public List<TDataCondPo> getChildren() {
        return children;
    }

    public void setChildren(List<TDataCondPo> children) {
        this.children = children;
    }

    public String getOptMode() {
        return optMode;
    }

    public void setOptMode(String optMode) {
        this.optMode = optMode;
    }

    public List<TDataCondPo> getLists() {
        return lists;
    }

    public void setLists(List<TDataCondPo> lists) {
        this.lists = lists;
    }

    @Override
    public int compareTo(TDataCondPo o) {
        if (getSeqno() >= o.getSeqno()) {
            return 1;
        } else {
            return -1;
        }
    }
}
